package com.example.cosid;

import me.ahoo.cosid.snowflake.SafeJavaScriptSnowflakeId;
import me.ahoo.cosid.snowflake.SecondSnowflakeId;

public class CosSafeJavaScriptSnowflakeId implements SnowflakeIdGenerator {

    private final SecondSnowflakeId generator;

    public CosSafeJavaScriptSnowflakeId() {
        this.generator = SafeJavaScriptSnowflakeId.ofSecond(1);

    }

    @Override
    public long generate() {
        return generator.generate();
    }
}
